import cv2
import numpy as np

# 透视变换
img = cv2.imread("C:\\Users\\86191\\Pictures\\Saved Pictures\\Camera Roll\\kc.jpg")
h,w,ch = img.shape
src = np.float32([[],[],[],[]])
dst = np.float32([[],[],[],[]])
M = cv2.getPerspectiveTransform(src,dst)
new_img = cv2.warpPerspective(img,M,(w,h))
cv2.imshow("new_img",new_img)
cv2.waitKey(0)